﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Century.Model.ViewModel
{
    public class CareerApplicantModel
    {
        [Required]
        [DataType(DataType.Text)]
        [Remote("IsValidFirstName","Validation")]
        public string FirstName { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Remote("IsValidSurname", "Validation")]
        public string Surname { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Remote("IsValidRegex")]
        public string Email { get; set; }
        
        [Required]        
        public string File { get; set; }

        [Remote("IsValidMessage", "Message")]
        [DataType(DataType.MultilineText)]
        public string Message { get; set; }
    }
}